import play.Application;
import play.GlobalSettings;
import play.Logger;
import play.mvc.Action;
import play.mvc.Http;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2016/3/2.
 */
public class Global extends GlobalSettings {
    @Override
    public Action onRequest(Http.Request request, Method method) {
        return super.onRequest(request, method);
    }

    @Override
    public void onStart(Application app) {
        Logger.error("项目启动");
    }



    @Override
    public void onStop(Application app) {
        Logger.info("项目关闭");
    }

    @Override
    public play.libs.F.Promise<play.mvc.SimpleResult> onHandlerNotFound(Http.RequestHeader requestHeader) {
//        Logger.info(requestHeader.host()+requestHeader.uri());
        return super.onHandlerNotFound(requestHeader);
    }


}
